<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
        <meta content="yes" name="apple-mobile-web-app-capable">
        <meta content="black" name="apple-mobile-web-app-status-bar-style">
        <title>index</title>
        <script src="__JS__/zepto.min.js"></script>
        <link href="__CSS__/weui.min.css" rel="stylesheet">
        <link rel="stylesheet" href="__SALEMAN__/stylesheets/index.css">
    </head>
    <body>
        <div class="newMedicine android_back_class">
            <input type="hidden" id='uid' value="{$salemanInfo.id}">
            <div class="info_nav nav_show">
                <div class="info_head">
                    <div class="head_img">
                        <notempty name="salemanInfo['head_img']">
                            <img src="{$salemanInfo['head_img']}" style="width:70px;height:70px;border-radius:50%">
                            <else/>
                            <img src="__SALEMAN__/images/people.png" alt="">
                        </notempty>

                    </div>
                    <div class = "info_name">{$salemanInfo['real_name']}</div>
                </div>
                <div class="infos">
                    <div class="weui-grids">
                        <a href="/Home/Saleman/Saleman/workArgument" class="weui-grid">
                            <div class="weui-grid__icon">
                                <img src="__SALEMAN__/images/work_icon.png" alt="">
                            </div>
                            <p class="weui-grid__label">工作安排</p>
                        </a>
                        <a href="/Home/SaleManager/County/targetClinic" class="weui-grid">
                            <div class="weui-grid__icon">
                                <img src="__SALEMAN__/images/goad_icon.png" alt="">
                            </div>
                            <p class="weui-grid__label">目标诊所</p>
                        </a>
                        <a href="/Home/SaleManager/County/clinic" class="weui-grid">
                            <div class="weui-grid__icon">
                                <img src="__SALEMAN__/images/my_clinic.png" alt="">
                            </div>
                            <p class="weui-grid__label">我的诊所</p>
                        </a>
                    </div>
                </div>
                <div class="info_list">
                    <div class="weui-cells">
                        <a class="weui-cell weui-cell_access" href="/Home/Saleman/Saleman/sign">
                            <div class="weui-cell__hd"><img src="__SALEMAN__/images/visit_icon.png" alt="" style="width:35px;margin-right:10px;display:block"></div>
                            <div class="weui-cell__bd">
                                <p>签到拜访</p>
                            </div>
                            <div class="weui-cell__ft"></div>
                        </a>
                        <a class="weui-cell weui-cell_access" href="/Home/SaleManager/County/approvalRecord">
                            <div class="weui-cell__hd"><img src="__SALEMAN__/images/support_icon.png" alt="" style="width:35px;margin-right:10px;display:block"></div>
                            <div class="weui-cell__bd">
                                <p>申请支持</p>
                            </div>
                            <div class="weui-cell__ft"></div>
                        </a>
                        <a class="weui-cell weui-cell_access" href="/Home/Saleman/Saleman/clinicOrder">
                            <div class="weui-cell__hd"><img src="__SALEMAN__/images/clinic_order.png" alt="" style="width:35px;margin-right:10px;display:block"></div>
                            <div class="weui-cell__bd">
                                <p>诊所订单</p>
                            </div>
                            <div class="weui-cell__ft"></div>
                        </a>
                        <a class="weui-cell weui-cell_access" href="/Home/Saleman/Saleman/orderMedicine">
                            <div class="weui-cell__hd"><img src="__SALEMAN__/images/order_medicine.png" alt="" style="width:35px;margin-right:10px;display:block"></div>
                            <div class="weui-cell__bd">
                                <p>订购药品</p>
                            </div>
                            <div class="weui-cell__ft"></div>
                        </a>
                        <a class="weui-cell weui-cell_access" href="/Home/SaleManager/County/pushHistory/role_id/5">
                            <div class="weui-cell__hd"><img src="__SALEMAN__/images/infopush_icon.png" alt="" style="width:35px;margin-right:10px;display:block"></div>
                            <div class="weui-cell__bd">
                                <p>消息推送</p>
                            </div>
                            <div class="weui-cell__ft"></div>
                        </a>
                        <a class="weui-cell weui-cell_access" href="/Home/WorkSummary/SaleSummary/index/saleId/{$salemanId}">
                            <div class="weui-cell__hd"><img src="__SALEMAN__/images/work_all.png" alt="" style="width:35px;margin-right:10px;display:block"></div>
                            <div class="weui-cell__bd">
                                <p>工作汇总</p>
                            </div>
                            <div class="weui-cell__ft"></div>
                        </a>
                    </div>
                </div>
            </div>
            <!-- 消息 -->
            <div class="info_nav msgs">
                <header class = "all_header">
                    <a class = "h_back" href="javascript:void(0)"><img src="__SALEMAN__/images/back_icon.png" alt=""></a>
                    <span class = "h_title">消息</span>
                    <a class = "h_add" href="javascript:void(0)"></a>
                </header>
                <div class="weui-panel__bd">
                    <a href="/Home/SaleManager/County/infoList/tag/upinfo.html" class="weui-media-box weui-media-box_appmsg">
                        <div class="weui-media-box__hd">
                            <img class="weui-media-box__thumb" src="__SALEMAN__/images/upInfo.png" alt="">
                        </div>
                        <div class="weui-media-box__bd">
                            <div class = "msg_tips">
                                <h4 class="weui-media-box__title">上级通知</h4>
                                <span>{$supertime}</span>
                            </div>
                            <div class="msg_cont">
                                <p class="weui-media-box__desc">{$lastupinfo}给您发了一条消息</p>
                                <span class = "info_num">{$supercount}</span>
                            </div>
                        </div>
                    </a>
                </div>
                             <div class="weui-panel__bd">
                                    <a href="/Home/SaleManager/County/infoList/tag/downinfo.html" class="weui-media-box weui-media-box_appmsg">
                                        <div class="weui-media-box__hd">
                                            <img class="weui-media-box__thumb" src="__SALEMAN__/images/downInfo.png" alt="">
                                        </div>
                                        <div class="weui-media-box__bd">
                                            <div class = "msg_tips">
                                                <h4 class="weui-media-box__title">下级消息</h4>
                                                <span>{$lowertime}</span>
                                            </div>
                                            <div class="msg_cont">
                                                <p class="weui-media-box__desc">{$lastdowninfo}给您发了一条消息</p>
                                                <span class = "info_num">{$lowercount}</span>
                                            </div>
                                        </div>
                                    </a>
                                </div>
       <div class="weui-panel__bd">
        <a href="/Home/SaleManager/County/sysinfoList/tag/downinfo.html" class="weui-media-box weui-media-box_appmsg">
          <div class="weui-media-box__hd">
            <img class="weui-media-box__thumb" src="__SaleManager__/images/xitongInfo.png" alt="">
          </div>
          <div class="weui-media-box__bd">
            <div class = "msg_tips">
              <h4 class="weui-media-box__title">系统消息</h4>
              <span>{$sysmessage}</span>
            </div>
            <div class="msg_cont">
              <p class="weui-media-box__desc">{$systitle}</p>
              <!-- <span class = "info_num">1</span> -->
            </div>
          </div>
        </a>
      </div>
            </div>
            <!-- 个人 -->
            <div class="info_nav set_cont">
                <header class = "all_header">
                    <a class = "h_back" href="javascript:void(0)"><img src="__SALEMAN__/images/back_icon.png" alt=""></a>
                    <span class = "h_title">个人</span>
                    <a class = "h_add" href="javascript:void(0)"></a>
                </header>
                <div class="weui-cells">
                    <a class="weui-cell weui-cell_access" href="/Home/SaleManager/County/personData/userId/{$myself.id}/x/nosecret/f/page.html">
                        <div class="weui-cell__bd">
                            <p>个人资料</p>
                        </div>
                        <div class="weui-cell__ft">
                        </div>
                    </a>
                     <a class="weui-cell weui-cell_access" href="/Home/SaleManager/Login/changePassword">
                        <div class="weui-cell__bd">
                            <p>修改密码</p>
                        </div>
                        <div class="weui-cell__ft">
                        </div>
                    </a>
                   <a class="weui-cell weui-cell_access" href="/Home/SaleManager/Login/message">
                        <div class="weui-cell__bd">
                            <p>新消息通知</p>
                        </div>
                        <div class="weui-cell__ft">
                        </div>
                    </a>
                    <a class="weui-cell weui-cell_access" href="/Home/SaleManager/Login/feedback">
                        <div class="weui-cell__bd">
                            <p>意见反馈</p>
                        </div>
                        <div class="weui-cell__ft">
                        </div>
                    </a>
                </div>
                <div class="weui-btn-area">
                    <a class="weui-btn quit_btn" href="/Home/SaleManager/Login/loginOut">退出登录</a>
                </div>
            </div>
            <div class="weui-tabbar">
                <a href="javascript:;" class="weui-tabbar__item weui-bar__item_on">
                    <span class = "work_active_icon common_icon"></span>
                    <!-- <img src="./images/icon_tabbar.png" alt="" class="weui-tabbar__icon"> -->
                    <p class="weui-tabbar__label">工作</p>
                </a>
                <a href="javascript:;" class="weui-tabbar__item">
                    <span class = "info_icon common_icon"></span>
                    <!-- <img src="./images/icon_tabbar.png" alt="" class="weui-tabbar__icon"> -->
                    <p class="weui-tabbar__label" style = "position: relative;">消息<notempty name="msgTotalNum"><span class = "new_info">{$msgTotalNum}</span></notempty></p>
                </a>
                <a href="javascript:;" class="weui-tabbar__item">
                    <span class = "person_icon common_icon"></span>
                    <!-- <img src="./images/icon_tabbar.png" alt="" class="weui-tabbar__icon"> -->
                    <p class="weui-tabbar__label">个人</p>
                </a>
            </div>
            <include file="./Application/Home/View/default/Saleman/Public/popup.html"/>
        </div>
         <script src = "__SaleManager__/js/androidback.js"></script>
        <script src = "__SALEMAN__/js/index.js"></script>
        <script type="text/javascript">
            $(function(){
                //调用登录--延迟2s
                setTimeout(function(){
                    var myid=$('#uid').val();
                    if(myid){
                        callmyclient(1,myid);
                    }
                },2000);

                //调用客户端事件
                function callmyclient(type,p1){
                    type = parseInt(type);
                    var  key = "登录#"+p1;
                    window.BSFWebView.showInfoFromJs(key);//调用登录

                }
            });
        </script>
        <script>
//            $(document).on('click', '.quit_btn', function () {
//                var sessioncode;
//                var nosesstion_url;
//                var returnStatus;
//                $.ajax({
//                    url: "/Home/SaleManager/Login/loginOut",
//                    type: 'POST',
//                    data: '',
//                    async: false,
//                    cache: false,
//                    dataType: "json",
//                    success: function (returndata) {
//                        if (returndata.code == 3001) {
//                            window.location.href = returndata.data;
//                        }
//                    },
//                    error: function (returndata) {
//                        window.location.href = returndata.data;
//                    }
//                });
//
//            });
        </script>
    </body>
</html>